package fr.isima.myant;

public class Main {

	public static void main(String[] args) {
		// pas d'argument => mybuild.txt + default target
		if(args.length == 0)
			args[0] = "mybuild.txt";
		else 
			// un seul argument qui est la target
			if(args.length == 1 && !args[0].contains("txt")) {
				args[1] = args[0];
				args[0] = "mybuild.txt";
		}
		
		Project p = new Project(args[0]);
		System.out.println(p);
		
		if(args.length < 2)
			p.execute();
		else
			p.execute(args[1]);
	}

}
